<?php

namespace handle\message\lib\traits;


use auxiliary\traits\Singleton;

trait ManageSingleton
{
    use Singleton;

    /**
     * 重置单例类
     * @param $instance
     * @return void
     */
    public function resetSingletonClass($instance){
        $instance instanceof $this and self::$instance->observer = array_merge_recursive(self::$instance->observer, $instance->observer);
    }
}